package com.gxa.jjty.core.pojo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @ClassName Area
 * @Author: ws
 * @date 2021/12/2 18:46
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

@Table(name = "area") // 创建数据表的注解
@Entity // ORM对象关系映射

@ApiModel("区域表表")
public class Area implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "area_name")
    private String areaName;
}
